﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Security.Events.Commands;

namespace Security.Events
{
    internal static class Strings
    {
        public static string GetChangesCommitedCommandDescription(ChangesCommittedCommand command)
        {
            return string.Format("{0}: Type = {1}, Operation = {2}, Tags.Count = {3}", command.GetType().Name, command.Type, command.Operation, command.Tags.Count());
        }

        public static string GetCommitChangesCommandDescription(CommitChangesCommand command)
        {
            return string.Format("{0}: Type = {1}, Operation = {2}, Tags.Count = {3}", command.GetType().Name, command.Type, command.Operation, command.Tags.Count());
        }

        public static string SaveChangesCommandDescription(SaveChangesCommand command)
        {
            return string.Format("{0}: ViewModel = {1}, Saved = {2}", command.GetType(), command.ViewModel.ViewCaption, command.Saved);
        }

        public static string GetShowConnectionViewCommandDescription(ShowConnectionViewCommand command)
        {
            return string.Format("{0}: DialogResult = {1}", command.GetType(), command.DialogResult);
        }
    }
}
